package com.autohome.wz.business.order.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class WzGasstationPriceDetails implements Serializable {
    private Integer id;

    private Integer stationid;

    private String oilid;

    private String oilcode;

    private BigDecimal countryprice;

    private BigDecimal stationprice;

    private BigDecimal discountprice;

    private Integer sellerid;

    private Date createdStime;

    private Date modifiedStime;

    private Integer isDel;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStationid() {
        return stationid;
    }

    public void setStationid(Integer stationid) {
        this.stationid = stationid;
    }

    public String getOilid() {
        return oilid;
    }

    public void setOilid(String oilid) {
        this.oilid = oilid == null ? null : oilid.trim();
    }

    public String getOilcode() {
        return oilcode;
    }

    public void setOilcode(String oilcode) {
        this.oilcode = oilcode == null ? null : oilcode.trim();
    }

    public BigDecimal getCountryprice() {
        return countryprice;
    }

    public void setCountryprice(BigDecimal countryprice) {
        this.countryprice = countryprice;
    }

    public BigDecimal getStationprice() {
        return stationprice;
    }

    public void setStationprice(BigDecimal stationprice) {
        this.stationprice = stationprice;
    }

    public BigDecimal getDiscountprice() {
        return discountprice;
    }

    public void setDiscountprice(BigDecimal discountprice) {
        this.discountprice = discountprice;
    }

    public Integer getSellerid() {
        return sellerid;
    }

    public void setSellerid(Integer sellerid) {
        this.sellerid = sellerid;
    }

    public Date getCreatedStime() {
        return createdStime;
    }

    public void setCreatedStime(Date createdStime) {
        this.createdStime = createdStime;
    }

    public Date getModifiedStime() {
        return modifiedStime;
    }

    public void setModifiedStime(Date modifiedStime) {
        this.modifiedStime = modifiedStime;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WzGasstationPriceDetails other = (WzGasstationPriceDetails) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStationid() == null ? other.getStationid() == null : this.getStationid().equals(other.getStationid()))
            && (this.getOilid() == null ? other.getOilid() == null : this.getOilid().equals(other.getOilid()))
            && (this.getOilcode() == null ? other.getOilcode() == null : this.getOilcode().equals(other.getOilcode()))
            && (this.getCountryprice() == null ? other.getCountryprice() == null : this.getCountryprice().equals(other.getCountryprice()))
            && (this.getStationprice() == null ? other.getStationprice() == null : this.getStationprice().equals(other.getStationprice()))
            && (this.getDiscountprice() == null ? other.getDiscountprice() == null : this.getDiscountprice().equals(other.getDiscountprice()))
            && (this.getSellerid() == null ? other.getSellerid() == null : this.getSellerid().equals(other.getSellerid()))
            && (this.getCreatedStime() == null ? other.getCreatedStime() == null : this.getCreatedStime().equals(other.getCreatedStime()))
            && (this.getModifiedStime() == null ? other.getModifiedStime() == null : this.getModifiedStime().equals(other.getModifiedStime()))
            && (this.getIsDel() == null ? other.getIsDel() == null : this.getIsDel().equals(other.getIsDel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStationid() == null) ? 0 : getStationid().hashCode());
        result = prime * result + ((getOilid() == null) ? 0 : getOilid().hashCode());
        result = prime * result + ((getOilcode() == null) ? 0 : getOilcode().hashCode());
        result = prime * result + ((getCountryprice() == null) ? 0 : getCountryprice().hashCode());
        result = prime * result + ((getStationprice() == null) ? 0 : getStationprice().hashCode());
        result = prime * result + ((getDiscountprice() == null) ? 0 : getDiscountprice().hashCode());
        result = prime * result + ((getSellerid() == null) ? 0 : getSellerid().hashCode());
        result = prime * result + ((getCreatedStime() == null) ? 0 : getCreatedStime().hashCode());
        result = prime * result + ((getModifiedStime() == null) ? 0 : getModifiedStime().hashCode());
        result = prime * result + ((getIsDel() == null) ? 0 : getIsDel().hashCode());
        return result;
    }
}